home *** CD-ROM | disk | FTP | other *** search
/ Mastering Web Site Development / Microsoft Mastering Web Site Development (Microsoft) (1997).iso / Media / Ch05 / W05d050.cc2 < prev    next >
Encoding:
Text File  |  1997-04-24  |  2.5 KB  |  47 lines

  1. 0, In this demonstration you will see how to use the 
  2. 4, Script Wizard in Visual InterDev to add script to 
  3. 9, a Web page. The Script Wizard can create either 
  4. 13, JScript or VBScript. To set the language used by the 
  5. 18, Script Wizard, from the tools menu click Options. 
  6. 23, From the HTML tab select either JScript or 
  7. 28, VBScript for the Script Wizard and click OK. To start the 
  8. 34, Wizard, on an HTML page right-click and select 
  9. 39, Script Wizard. In the first pane the Script Wizard 
  10. 45, includes a list of all the HTML and ActiveX 
  11. 49, controls in the Web page. You can use this pane to find 
  12. 54, the events that are supported by these controls. In 
  13. 60, the second pane you can find the properties and 
  14. 63, methods supported by the controls. For example, the 
  15. 67, Command button has a click method and form, name, 
  16. 71, and value properties. To create script with a 
  17. 77, Script Wizard you can use either code view or list 
  18. 82, view. In code view you enter code directly. For 
  19. 88, example, I want to add code to the Spin Up button that 
  20. 94, changes the value of the department. I'll select 
  21. 98, the appropriate event, select code view, and I can 
  22. 102, type my code directly here. I'll also add code to 
  23. 119, a Command button to change the value of a text 
  24. 122, box. I'll select the appropriate event and in this 
  25. 126, case I'll use list view to show the differences. In 
  26. 131, list view, rather than typing in the code directly, 
  27. 135, you select an action to perform. For example, 
  28. 138, I'll want to change the name of this text box so I'll 
  29. 142, select the property I want to change and click 
  30. 146, Insert Action. I'm prompted for a new value. The 
  31. 156, Script Wizard will convert this to script when it's 
  32. 159, inserted into my HTML file. I'll click OK and in 
  33. 164, the HTML file notice I now have a script section 
  34. 169, that was inserted by the Script Wizard and includes 
  35. 173, the Spin Up event for my spin button. Down here on 
  36. 178, my button, my HTML button, the Script Wizard has 
  37. 182, added the script "ONCLICK" to change the name of 
  38. 187, the text box. Let's preview this page and see how it 
  39. 192, works. I can click the spin button to change the 
  40. 204, value of the department and if I click this HTML 
  41. 208, comand button a new name is entered into the text 
  42. 212, box. So, in this demonstration you have seen how to 
  43. 217, use the Script Wizard to view the events, 
  44. 221, properties and methods supported by ActiveX and HTML 
  45. 225, controls and how to add script using the Script Wizard 
  46. 230, to an HTML page.
  47. 233, END